package com.ecnucs.shortlink.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties
@Data
public class ShortLinkConfiguration {
    @Value("${short-link.admin.host}")
    private String adminHost;

    @Value("${short-link.admin.port}")
    private String adminPort;

    @Value("${short-link.link.host}")
    private String linkHost;

    @Value("${short-link.link.port}")
    private String linkPort;

    @Value("${short-link.username}")
    private String username;

    @Value("${short-link.password}")
    private String password;
}
